#ifndef __FLASH_H
#define __FLASH_H 		

#define FLASH_PAGE_SIZE       ((uint16_t)0x400)   //1024
#define WRITE_START_ADDR        ((uint32_t)0x0800C000)
#define WRITE_END_ADDR          ((uint32_t)0x0800D000)
#define true 1
#define false 0

#define ENGERY_SAVE_ADDRESS 0x0800C000
#define ENGERY_RECORD_NUMBER_ADDRESS 0x0800C400
#define ZERO_VOLTAGE_RECORD_ADDRESS 0x0800C800
typedef uint8_t bool;

extern bool ReadFlash(uint32_t addrStart, uint32_t *pData, uint32_t dataLen);
extern bool WriteFlash(uint32_t addrStart, uint32_t *pData, uint32_t dataLen);
#endif
